package structure_结构性.decorator_pattern_装饰器模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/07/11:28
 * @Description:
 */
public class DecoratorPattenDemo {
	public static void main(String[] args) {
		RedShapeDecorator redShapeDecorator = new RedShapeDecorator(new Circle());
		redShapeDecorator.draw();
		RedShapeDecorator redShapeDecorator1 = new RedShapeDecorator(new Rectangle());
		redShapeDecorator1.draw();
	}
}
